package com.tangfh.train.batch.controller.admin;

//import com.tangfh.train.common.resp.CommonResp;
//import com.tangfh.train.common.resp.PageResp;
//import com.tangfh.train.batch.req.MemberQueryReq;
//import com.tangfh.train.batch.req.MemberSaveReq;
//import com.tangfh.train.batch.resp.MemberQueryResp;
//import com.tangfh.train.batch.service.MemberService;
//import jakarta.annotation.Resource;
//import jakarta.validation.Valid;
//import org.springframework.web.bind.annotation.*;
//
//@RestController
//@RequestMapping("/admin/member")
//public class MemberAdminController {
//
//    @Resource
//    private MemberService memberService;
//
//    @PostMapping("/save")
//    public CommonResp<Object> save(@Valid @RequestBody MemberSaveReq req) {
//        memberService.save(req);
//        return new CommonResp<>();
//    }
//
//    @GetMapping("/query-list")
//    public CommonResp<PageResp<MemberQueryResp>> queryList(@Valid MemberQueryReq req) {
//        PageResp<MemberQueryResp> list = memberService.queryList(req);
//        return new CommonResp<>(list);
//    }
//
//    @DeleteMapping("/delete/{id}")
//    public CommonResp<Object> delete(@PathVariable Long id) {
//        memberService.delete(id);
//        return new CommonResp<>();
//    }
//
//}
